﻿using System.Collections.Generic;
using System.Runtime.Serialization;

namespace Opentao.NotificationService.Application.Service.DTO
{
    [ DataContract( IsReference = true ) ]
    public class RecipientDTO
    {
        public RecipientDTO()
        {
            Subscriptions = new List<EventTypeDTO>();
        }

        [ DataMember ] public int Id { get; set; }
        [ DataMember ] public string Email { get; set; }
        [ DataMember ] public string Phone { get; set; }
        [ DataMember ] public string Name { get; set; }

        [ DataMember ] public List<EventTypeDTO> Subscriptions { get; set; }
    }
}